/*********************
* Author:Dzlua
* QQ:505544956
* time:2016/12/05
*/
#ifndef __EDUI_LUABASE_H__
#define __EDUI_LUABASE_H__

#include "../../controls/Control.h"

#ifdef EDUI_USE_LUAPLUS

#include <LuaPlus.h>
using namespace LuaPlus;

EDUI_NAMESPACE_BEGIN

#define LuaBaseNS EDUI_NAMESPACE::LuaBase
namespace LuaBase{

//register all lua base
void RegisterLuaBaseAll(LuaState *L);

//point to table
LuaObject ToLuaObj(LuaState *L, const Point *data);
//pointF to table
LuaObject ToLuaObj(LuaState *L, const PointF *data);
//size to table
LuaObject ToLuaObj(LuaState *L, const Size *data);
//rect to table
LuaObject ToLuaObj(LuaState *L, const Rect *data);
//rect1 to table
LuaObject ToLuaObj(LuaState *L, const Rect1 *data);
//Color to table
LuaObject ToLuaObj(LuaState *L, const Color *data);
//ImageData to table
LuaObject ToLuaObj(LuaState *L, const ImageData *data);
//AlignType to string
LuaObject ToLuaObj(LuaState *L, AlignType data);
//WndFullScreen to string
LuaObject ToLuaObj(LuaState *L, WndFullScreen data);

}
EDUI_NAMESPACE_END

#endif
#endif